how does an inverter heat pump work